package com.yigang.homecontroller;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.yigang.service.ActivityService;

@Controller
public class TodayMustBuyController {
	@Autowired
	ActivityService activityService;
	@RequestMapping("/todaymustbuy")
	public String todayMustBuy(Model model,HttpSession session) {
		List<Map<String, Object>> list4=activityService.getAllActivity();
		System.out.println(list4);
		model.addAttribute("list4", list4);
		return "jsp/home/todaymustbuy";
		
	}
}
